Imports Crystal.DatabaseManagement.BusinessLayer
Imports System.Data.OleDb
Imports Crystal.CommonDBManagement

Public Class frmTemplateMapping
#Region "Declare"
    Private iFormatID As Integer = 0
    Public Event ReloadFormatId(ByVal iFormatID As Integer)
#End Region

#Region "Properties"

    Public Property FormatID() As Integer
        Get
            Return iFormatID
        End Get
        Set(ByVal value As Integer)
            iFormatID = value
        End Set
    End Property

#End Region

#Region "Enum"
    Public Enum FundTurnOver
        Turnover = 9
        TurnoverLabel = 10
    End Enum
#End Region

#Region "Form Closing"
    Private Sub frmInvestorFormat_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
        Me.Dispose()
        For lmFomrs As Integer = 0 To Application.OpenForms.Count - 1
            If Application.OpenForms(lmFomrs).Name = "frmImportInvestor" Then
                RemoveHandler ReloadFormatId, AddressOf CType(Application.OpenForms(lmFomrs), frmUploadInvestor).Reload
            End If
        Next
    End Sub
#End Region
End Class